package org.pih.migration.load.objects;

import java.util.ArrayList;
import java.util.List;

import org.pih.util.NumericUtils;

public class Drug extends Option {

	private List<Integer> appliesTo = new ArrayList<Integer>();

	public void addLocation(String locationRaw) {
		if (locationRaw != null) {
			for (String locationPart : locationRaw.trim().split(" ")) {
				if (NumericUtils.isInt(locationPart.trim())) appliesTo.add(new Integer(locationPart.trim()));
			}
		}
	}
	
	public void setAppliesTo(List<Integer> appliesTo) {
		this.appliesTo = appliesTo;
	}

	public List<Integer> getAppliesTo() {
		return appliesTo;
	}
}
